<div class="main-content">
    <nav class="navbar navbar-expand-md navbar-light d-none d-md-flex">
        <div class="container-fluid">
            <ul class="navbar-nav mr-auto">
                @if(auth()->user()->hasAnyPermission(\App\Models\AdminModule::getPermission('Admin')))
                <li class="nav-item mr-3">
                    <a class="nav-link" href="{{route('admin.module.index')}}">
                        后台管理
                    </a>
                </li>
                @endif
                @if(auth()->user()->hasAnyPermission(\App\Models\AdminModule::getPermission('Content')))
                <li class="nav-item mr-3">
                    <a class="nav-link" href="{{route('content.articlemodel.index')}}">
                        文章系统
                    </a>
                </li>
                @endif
                <li class="nav-item mr-3">
                    <a class="nav-link" href="{{route('edu.lesson.lists')}}">
                        在线教育
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{{route('content.articlemodel.index')}}">
                        微信公众号
                    </a>
                </li>
            </ul>
        </div> <!-- / .container-fluid -->
    </nav>
    <div class="p-5">
        @yield('content')
    </div>
</div>
